package org.example.domain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("message")
public class Message {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer status;

    private Integer delFlag;

    private Date createTime;

    private Date updateTime;

    private String content;

    private Integer userId;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private String username;
}
